package org.ggb.service.impl;

import org.ggb.pojo.Product;
import org.ggb.service.ProductService;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    /**
     * 获取商品列表
     *
     * @return
     */
    @Override
    public List<Product> selectProductList() {
        return Arrays.asList(
                new Product(1, "华为手机", 2, 5800.0),
                new Product(2, "华为电脑", 4, 5800.0),
                new Product(3, "华为手机", 10, 5800.0));
    }
}
